package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计量单位管理对象 inv_unit
 * 
 * @author ruoyi
 * @date 2025-10-19
 */
public class InvUnit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 单位ID */
    @Excel(name = "单位ID")
    private Long unitId;

    /** 计量单位编码，唯一 */
    @Excel(name = "计量单位编码，唯一")
    private String unitCode;

    /** 计量名称 */
    @Excel(name = "计量名称")
    private String unitName;

    /** 单位符号 */
    @Excel(name = "单位符号")
    private String unitSymbol;

    /** 单位类型 */
    @Excel(name = "单位类型")
    private String unitType;

    /** 状态（0正常 1停用） */
    private String status;

    /** 删除标志（0存在 1删除） */
    private String delFlag;

    public void setUnitId(Long unitId) 
    {
        this.unitId = unitId;
    }

    public Long getUnitId() 
    {
        return unitId;
    }

    public void setUnitCode(String unitCode) 
    {
        this.unitCode = unitCode;
    }

    public String getUnitCode() 
    {
        return unitCode;
    }

    public void setUnitName(String unitName) 
    {
        this.unitName = unitName;
    }

    public String getUnitName() 
    {
        return unitName;
    }

    public void setUnitSymbol(String unitSymbol) 
    {
        this.unitSymbol = unitSymbol;
    }

    public String getUnitSymbol() 
    {
        return unitSymbol;
    }

    public void setUnitType(String unitType) 
    {
        this.unitType = unitType;
    }

    public String getUnitType() 
    {
        return unitType;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("unitId", getUnitId())
            .append("unitCode", getUnitCode())
            .append("unitName", getUnitName())
            .append("unitSymbol", getUnitSymbol())
            .append("unitType", getUnitType())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
